home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / LANG / ADA / GNAT / !gcc / adainc / 6 / ads / s-tasren < prev    next >
Text File  |  1996-02-12  |  5KB  |  114 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --             S Y S T E M . T A S K I N G . R E N D E Z V O U S            --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                           (Compiler Interface)                           --
  9. --                                                                          --
  10. --                             $Revision: 1.14 $                            --
  11. --                                                                          --
  12. --    Copyright (C) 1991, 92, 93, 94, 1995 Free Software Foundation, Inc.   --
  13. --                                                                          --
  14. -- GNARL is free software; you can  redistribute it  and/or modify it under --
  15. -- terms of the  GNU General Public License as published  by the Free Soft- --
  16. -- ware  Foundation;  either version 2,  or (at your option) any later ver- --
  17. -- sion. GNARL is distributed in the hope that it will be useful, but WITH- --
  18. -- OUT ANY WARRANTY;  without even the  implied warranty of MERCHANTABILITY --
  19. -- or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License --
  20. -- for  more details.  You should have  received  a copy of the GNU General --
  21. -- Public License  distributed with GNARL; see file COPYING.  If not, write --
  22. -- to  the Free Software Foundation,  59 Temple Place - Suite 330,  Boston, --
  23. -- MA 02111-1307, USA.                                                      --
  24. --                                                                          --
  25. -- As a special exception,  if other files  instantiate  generics from this --
  26. -- unit, or you link  this unit with other files  to produce an executable, --
  27. -- this  unit  does not  by itself cause  the resulting  executable  to  be --
  28. -- covered  by the  GNU  General  Public  License.  This exception does not --
  29. -- however invalidate  any other reasons why  the executable file  might be --
  30. -- covered by the  GNU Public License.                                      --
  31. --                                                                          --
  32. -- GNARL was developed by the GNARL team at Florida State University. It is --
  33. -- now maintained by Ada Core Technologies Inc. in cooperation with Florida --
  34. -- State University (http://www.gnat.com).                                  --
  35. --                                                                          --
  36. ------------------------------------------------------------------------------
  37.  
  38. --  Note: the compiler generates direct calls to this interface, via Rtsfind.
  39. --  Any changes to this interface may require corresponding compiler changes.
  40.  
  41. with Ada.Exceptions;
  42. --  Used for, Exception_Id
  43.  
  44. package System.Tasking.Rendezvous is
  45.    --  This interface is described in the document
  46.    --  Gnu Ada Runtime Library Interface (GNARLI).
  47.  
  48.    procedure Task_Entry_Call
  49.      (Acceptor              : Task_ID;
  50.       E                     : Task_Entry_Index;
  51.       Uninterpreted_Data    : System.Address;
  52.       Mode                  : Call_Modes;
  53.       Rendezvous_Successful : out Boolean);
  54.    --  General entry call
  55.  
  56.    procedure Call_Simple
  57.      (Acceptor           : Task_ID;
  58.       E                  : Task_Entry_Index;
  59.       Uninterpreted_Data : System.Address);
  60.    --  Simple entry call
  61.  
  62.    procedure Cancel_Task_Entry_Call (Cancelled : out Boolean);
  63.    --  Cancel pending task entry call
  64.  
  65.    procedure Requeue_Task_Entry
  66.      (Acceptor   : Task_ID;
  67.       E          : Task_Entry_Index;
  68.       With_Abort : Boolean);
  69.  
  70.    procedure Requeue_Protected_To_Task_Entry
  71.      (Object     : Protection_Access;
  72.       Acceptor   : Task_ID;
  73.       E          : Task_Entry_Index;
  74.       With_Abort : Boolean);
  75.  
  76.    procedure Selective_Wait
  77.      (Open_Accepts       : Accept_List_Access;
  78.       Select_Mode        : Select_Modes;
  79.       Uninterpreted_Data : out System.Address;
  80.       Index              : out Select_Index);
  81.    --  Selective wait
  82.  
  83.    procedure Accept_Call
  84.      (E                  : Task_Entry_Index;
  85.       Uninterpreted_Data : out System.Address);
  86.    --  Accept an entry call
  87.  
  88.    procedure Accept_Trivial (E : Task_Entry_Index);
  89.    --  Accept an entry call that has no parameters and no body
  90.  
  91.    function Task_Count (E : Task_Entry_Index) return Natural;
  92.    --  Return number of tasks waiting on the entry E (of current task)
  93.  
  94.    function Callable (T : Task_ID) return Boolean;
  95.    --  Return T'CALLABLE
  96.  
  97.    type Task_Entry_Nesting_Depth is new Task_Entry_Index
  98.      range 0 .. Max_Task_Entry;
  99.  
  100.    function Task_Entry_Caller (D : Task_Entry_Nesting_Depth) return Task_ID;
  101.    --  Return E'Caller.  This will only work if called from within an
  102.    --  accept statement that is handling E, as required by the
  103.    --  LRM (C.7.1(14)).
  104.  
  105.    procedure Complete_Rendezvous;
  106.    --  Called by acceptor to wake up caller
  107.  
  108.    procedure Exceptional_Complete_Rendezvous
  109.      (Ex : Ada.Exceptions.Exception_ID);
  110.    --  Called by acceptor to mark the end of the current rendezvous and
  111.    --  propagate an exception to the caller.
  112.  
  113. end System.Tasking.Rendezvous;
  114.